#ifndef _WRITE_VALUE_TO_PCI_CONFIG_SPACE_H_
#define _WRITE_VALUE_TO_PCI_CONFIG_SPACE_H_

VOID
WriteValueToPciConfigSpace8(
                                   IN  CHAR16   StrValue[],
                                   IN  PCITable *PciTable,
                                   IN  UINT16   DeviceSelect,
                                   IN  UINT32   Offset
                                  )
{

  CHAR8   *pValue8;
//  CHAR8   ValueSetIn;
  UINTN   ValueSetIn;

 ValueSetIn = 0;

  if (StrValue != '\0' )
  {
    ValueSetIn = xtoi(StrValue);
  }  

  if (ValueSetIn > 0xFF){
        ValueSetIn = 0x00;
    }  
       
  else
    ValueSetIn = 0x00;
  
  pValue8 = (CHAR8*) ( PciTable + DeviceSelect );
  *(pValue8 + Offset) = (CHAR8) ValueSetIn;
               

};

#endif


